package com.hnxxxy.statistics.service.Impl;


import com.hnxxxy.statistics.mapper.TypeMapMapper;
import com.hnxxxy.statistics.service.TypeMapService;
import com.hnxxxy.statistics.vo.JfDetailVo;
import com.hnxxxy.sysmgr.vo.MenuVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Service
public class TypeMapServiceImpl implements TypeMapService {

    @Autowired
    private TypeMapMapper typeMapMapper;

    @Override
    public Map<String, Object> findPerTypePie(int userId) {
        Map<String, Object> map = new HashMap<String, Object>();
        List<JfDetailVo> perTypePie = typeMapMapper.findPerTypePie(userId);
        map.put("list",perTypePie);
        return map;
    }

    @Override
    public Map<String, Object> findCollegeTypePie() {
        Map<String, Object> map = new HashMap<String, Object>();
        List<JfDetailVo> collegeTypePie = typeMapMapper.findCollegeTypePie();
        map.put("list",collegeTypePie);
        return map;
    }

    @Override
    public Map<String, Object> findPerTypeBroken(int userId) {


        Map<String, Object> map = new HashMap<String, Object>();
        Map<String, Object> xcontent = new HashMap<String, Object>(16);
        Map<String, Object> list = new HashMap<String, Object>(16);
        Map<String, Object> list1 = new HashMap<String, Object>(16);



        return map;
    }
}
